﻿using EFCore.Sharding;
using FieldTools.Client.Business.IBusiness;
using FieldTools.Client.WebApi;
using FieldTools.Util;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System.Threading;
using System.Threading.Tasks;

namespace FieldTools.Client.Tools.HttpServer
{
    /// <summary>
    /// httpAPi
    /// </summary>
    public class MyHttpApi
    {
        /// <summary>
        /// 运行服务
        /// </summary>qaw
        /// <param name="token"></param>
        public static async Task RunServer(CancellationToken token)
        {
            await StartUp.OpenServer(null, token);
        }
    }
}
